<?php
include "./lian.php";
$u=$_GET['username'];
$p=$_GET['password'];
    $sql="select * from lu where name='$u' and paw='$p'";
    //执行sql语句，并放回结果集
    $result=mysqli_query($link,$sql);
    if($row=mysqli_fetch_row($result)){
        echo "1";
    }else{
        echo "0";
    }
    // 关闭数据库
    mysqli_close($link);
?>